#include <iostream>
#include <string>
using namespace std;

int main()
{
    string s1,s2;
    cin>>s1;
    cin.get();
    getline(cin,s2);
    bool bf1=true,bf2=true;
    for (int i=0;i<s1.size();i++)
    {
        if (!(s1[i]>='0'&&s1[i]<='9'))
        {
            bf1=false;
            break;
        }
    }
    for (int i=0;i<s2.size();i++)
    {
        if (s2[0]=='-')
        {
            bf2=false;
            break;
        }
        if (!(s2[i]>='0'&&s2[i]<='9'))
        {
            bf2=false;
            break;
        }
    }
    if (s1[0]=='-'||s1[0]=='0')
        bf1=false;
    if (s2[0]=='-'||s2[0]=='0')
        bf2=false;
    if (bf1&&stoi(s1)>1000)
        bf1=false;
    if (bf2&&stoi(s2)>1000)
        bf2=false;
    if (bf1&&bf2)
        printf("%d + %d = %d",stoi(s1),stoi(s2),stoi(s1)+stoi(s2));
    else if (bf1&&!bf2)
        printf("%d + ? = ?",stoi(s1));
    else if (!bf1&&bf2)
        printf("? + %d = ?",stoi(s2));
    else
        printf("? + ? = ?");
}